imcontext: Add [gs]et_surrounding_with_selection
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Mar 2021 18:27:38 +0000 (13:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Mar 2021 20:18:30 +0000 (15:18 -0500)
commit4b9aeaf9e38ef787cadd81149683c9e9416cc605
treeb70d1ca2dfb097fdc902338edb18a512af0675b0
parent053d7cfe9ff20f54387022f562529983c2871705
imcontext: Add [gs]et_surrounding_with_selection

The Wayland text protocol expects to get both ends
of the selection with its surrounding call, so make
that available via GtkIMContext. We add this as new
api and vfuncs, and fall back, so that existing
implementations keep working.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkimcontext.c
gtk/gtkimcontext.h